package hibernate.p;

public class Pair {
	protected Object first; 
	protected Object second; 

	public Pair(){}
	
	public Pair(Object first, Object second){ 
	      this.first = first; 
	      this.second = second; 
	} 
	 
	public Object getFirst() { return first; } 
	public Object getSecond() { return second; } 
	 
	public void setFirst(Object newValue) { first = newValue; } 
	public void setSecond(Object newValue) { second = newValue; } 
	 
	public boolean equals(Object obj){
		if(!(obj instanceof Pair))
			return false;
		else return ((Pair)obj).first.equals(this.first) && ((Pair)obj).second.equals(this.second);
	}
}
